package com.erp.programmer.dto;

/**
 * @author 杨杨吖
 * @QQ 823208782
 * @WX yjqi12345678
 * @create 2021-05-23 19:14
 */

import com.erp.programmer.annotation.ValidateEntity;

/**
 * 作用于 controller service
 */
public class UserDto {

    @ValidateEntity(required=true,requiredMaxLength=true,requiredMinLength=true,maxLength=8,minLength=1,errorRequiredMsg="用户昵称不能为空！",errorMaxLengthMsg="用户昵称长度不能大于8！",errorMinLengthMsg="用户昵称长度不能小于1！")
    private String username;

    @ValidateEntity(required=true,requiredMaxValue=true,requiredMinValue=true,maxValue=8,minValue=1,errorRequiredMsg="用户昵称不能为空！",errorMaxValueMsg="用户昵称长度不能大于8！",errorMinLengthMsg="用户昵称长度不能小于1！")
    private String password;

    private String token;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
